package com.atguigu.common.exception;

public enum CodeEnum {
    UNKONW_EXCEPTON(10000, "系统未知异常"),
    VALID_EXCEPTION(10001, "参数格式校验失败"),
    SMS_CODE_EXCEPTION(10002, "发送验证码频率太高"),
    SMS_CODE_ERROR(10003, "验证码错误"),
    USER_EXIST_EXCEPTION(10004, "用户名已存在"),
    PWD_EXIST_EXCEPTION(10005, "密码已存在"),
    LOGINACC_OR_PWD_ERROR(10006, "用户名或密码错误");

    Integer code;
    String msg;

    CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
